﻿//using Castle.DynamicProxy;
using Summer.Logger;
using System;
using System.Collections.Generic;
using System.Text;

namespace Summer.Model.Attribute
{
    /*
    //这个只能在类或接口上拦截，不能针对单个方法
    public class MyInterceptor : IInterceptor
    {
        public void Intercept(IInvocation invocation)
        {
            try
            {
                invocation.Proceed();
                NLogHelper.logger.Info(invocation.Method.Name);
            }
            catch (Exception ex)
            {
                NLogHelper.logger.Error(invocation.Method.Name + " " + ex.ToString());
            }
        }
    }*/
    // 取消Autofac拦截，取消引用Castle.Core->Castle.DynamicProxy，后续统一用AspectCore.DynamicProxy 拦截
    public class MyInterceptor { }
}
